// Copyright (C) 2004 Doomsday <doomsday@mailclub.net>

// This file is part of libnettool.

// libnettool is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.

// libnettool is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser Public License for more details.

// You should have received a copy of the GNU Lesser Public License
// along with libnettool; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#include "libnettool.h"

void		delete_client(t_client *c)
{
  printf("delete client %d\n", (int)c);fflush(stdout);
  close_socket(&c->sock);
  printf("delete client2 %d\n", (int)c);fflush(stdout);
  cnt->allclients = del_in_list(cnt->allclients, c);
  printf("delete client4 %d\n", (int)c);fflush(stdout);
  free_client_data(c);
  printf("delete client6 %d\n", (int)c);fflush(stdout);
  _net_xfree(c);
  write(1, "blabla\n", 7);
}
